package com.yidu.t286.domain;
/*
 * @description: 车辆信息实体类
 * @author:文杰
 * @date  :2021/7/27 0027上午 10:06
 */

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

public class Vehicle implements Serializable {

    //车辆信息编号
    private int vehicleId;
    //品牌编号
    private int brandId;
    //价格
    private double vehiclePrice;
    //首次上牌时间
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date licensingtime;
    //表里里程
    private double mileage;
    //排放标准
    private String emission;
    //过户次数
    private int transfertimes;
    //排量
    private double displacement;
    //车辆归属地
    private String ownerships;
    //变速箱
    private String transmission;
    //车身颜色
    private String bodycolor;
    //出厂日期
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private  Date productionDate;

    /**
     * 默认构造方法
     */
    public Vehicle() {

    }

    /**
     * 带参构造方法
     * @param brandId
     * @param vehiclePrice
     * @param licensingtime
     * @param mileage
     * @param emission
     * @param transfertimes
     * @param displacement
     * @param ownerships
     * @param transmission
     * @param bodycolor
     * @param productionDate
     */
    public Vehicle(int brandId, double vehiclePrice, Date licensingtime, double mileage, String emission, int transfertimes, double displacement, String ownerships, String transmission, String bodycolor, Date productionDate) {
        this.brandId = brandId;
        this.vehiclePrice = vehiclePrice;
        this.licensingtime = licensingtime;
        this.mileage = mileage;
        this.emission = emission;
        this.transfertimes = transfertimes;
        this.displacement = displacement;
        this.ownerships = ownerships;
        this.transmission = transmission;
        this.bodycolor = bodycolor;
        this.productionDate = productionDate;
    }

    /**
     *
     * @param vehicleId
     * @param brandId
     * @param vehiclePrice
     * @param licensingtime
     * @param mileage
     * @param emission
     * @param transfertimes
     * @param displacement
     * @param ownerships
     * @param transmission
     * @param bodycolor
     * @param productionDate
     */
    public Vehicle(int vehicleId, int brandId, double vehiclePrice, Date licensingtime, double mileage, String emission, int transfertimes, double displacement, String ownerships, String transmission, String bodycolor, Date productionDate) {
        this.vehicleId = vehicleId;
        this.brandId = brandId;
        this.vehiclePrice = vehiclePrice;
        this.licensingtime = licensingtime;
        this.mileage = mileage;
        this.emission = emission;
        this.transfertimes = transfertimes;
        this.displacement = displacement;
        this.ownerships = ownerships;
        this.transmission = transmission;
        this.bodycolor = bodycolor;
        this.productionDate = productionDate;
    }


    public int getVehicleId() {
        return vehicleId;
    }

    public void setVehicleId(int vehicleId) {
        this.vehicleId = vehicleId;
    }

    public int getBrandId() {
        return brandId;
    }

    public void setBrandId(int brandId) {
        this.brandId = brandId;
    }

    public double getVehiclePrice() {
        return vehiclePrice;
    }

    public void setVehiclePrice(double vehiclePrice) {
        this.vehiclePrice = vehiclePrice;
    }

    public Date getLicensingtime() {
        return licensingtime;
    }

    public void setLicensingtime(Date licensingtime) {
        this.licensingtime = licensingtime;
    }

    public double getMileage() {
        return mileage;
    }

    public void setMileage(double mileage) {
        this.mileage = mileage;
    }

    public String getEmission() {
        return emission;
    }

    public void setEmission(String emission) {
        this.emission = emission;
    }

    public int getTransfertimes() {
        return transfertimes;
    }

    public void setTransfertimes(int transfertimes) {
        this.transfertimes = transfertimes;
    }

    public double getDisplacement() {
        return displacement;
    }

    public void setDisplacement(double displacement) {
        this.displacement = displacement;
    }

    public String getOwnerships() {
        return ownerships;
    }

    public void setOwnerships(String ownerships) {
        this.ownerships = ownerships;
    }

    public String getTransmission() {
        return transmission;
    }

    public void setTransmission(String transmission) {
        this.transmission = transmission;
    }

    public String getBodycolor() {
        return bodycolor;
    }

    public void setBodycolor(String bodycolor) {
        this.bodycolor = bodycolor;
    }

    public Date getProductionDate() {
        return productionDate;
    }

    public void setProductionDate(Date productionDate) {
        this.productionDate = productionDate;
    }
}
